﻿using Microsoft.Phone.Controls;
using System.Windows.Controls;
using System;

namespace BootyShaker
{
    public partial class HelpPage : UserControl
    {
        Action returnMethod;
        public HelpPage(Action returnMeth)
        {
            InitializeComponent();
            returnMethod = returnMeth;
        }
        public void GoBack()
        {
            Hide.Begin();
            returnMethod();
        }

        public void ShowPage(Action ret) 
        {
            returnMethod = ret;
            Show.Begin();
        }

        private void Show_Completed(object sender, EventArgs e)
        {

        }

        private void Hide_Completed(object sender, EventArgs e)
        {

        }

        private void btnBack_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            GoBack();
        }
        
    }
}